<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table>
		<thead>
			<tr>
				<td th:text="#{heading.id}">ID</td>
				<td th:text="#{heading.name}">姓名</td>
				<td th:text="#{heading.email}">邮箱</td>
				<td th:text="#{heading.addr}">地址</td>
				<td th:text="#{heading.credit}">信用额度</td>
			</tr>
		</thead>
		<tbody th:remove="all-but-first">
			<tr th:each="customer: ${customers}" th:style="${customerStat.even}? 'background-color: olive;':_">
				<td th:text="${customer.id}" style="border: 1px solid #000;">1</td>
				<td th:text="${customer.name}" style="border: 1px solid #000;">张三</td>
				<td th:text="${customer.email.value}" style="border: 1px solid #000;">zhangsan@163.com</td>
				<td th:text="${customer.addresses}" style="border: 1px solid #000;">天津市</td>
				<td th:text="${customer.creditLimit.amount}" style="border: 1px solid #000;">1200</td>
			</tr>
			<tr>
				<td>2</td>
				<td>lisi</td>
				<td>lisi@qq.com</td>
				<td>北京市</td>
				<td>2000</td>
			</tr>
			<tr>
				<td>3</td>
				<td>王五</td>
				<td>wangwu@hotmail.com</td>
				<td>上海市</td>
				<td>3000</td>
			</tr>
		</tbody>
	</table>
</body>
</html>